package com.hst.web.base.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_personeltransfer_info")
@Comment("人员单位调动申请表")
@HSID(length = 10, prefix = "T", resetByDay = true)
public class TPersoneltransferInfo extends BaseEntity {

	@Id
	@Column(name = "id", length = 10)
	@Comment("ID")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String id;

	@Column(name = "employee_code", nullable = false, length = 16)
	@Comment("员工编号")
	private String employeeCode;
	
	@Column(name = "company_code", nullable = false, length = 20)
	@Comment("公司编号")
	private String companyCode;

	@Column(name = "contractor_code", length = 20)
	@Comment("承包商编号")
	private String contractorCode;

	@Column(name = "dept_code", length = 20)
	@Comment("部门编号")
	private String deptCode;

	@Column(name = "companycode_old", nullable = false, length = 20)
	@Comment("原公司编号")
	private String companycodeOld;

	@Column(name = "contractor_code_old", length = 20)
	@Comment("原承包商编号")
	private String contractorCodeOld;

	@Column(name = "dept_code_old", length = 20)
	@Comment("原部门编号")
	private String deptCodeOld;

	@Column(name = "trans_status", length = 2, nullable = false)
	@Comment("申请状态, 00-未审批, 01-通过, 02-拒绝")
	private String transStatus;
	
	@Column(name = "apply_reason", length = 500)
	@Comment("申请原因")
	private String applyReason;
	
	@Column(name = "refuse_reason", length = 500)
	@Comment("拒绝原因意见")
	private String refuseReason;

	@Column(name = "accept_time")
	@Comment("接收时间")
	private Timestamp acceptTime;

	@Column(name = "accept_userid")
	@Comment("接收人")
	private String acceptUserid;
	
	@Column(name = "papers_number", length = 32)
	@Comment("证件号")
	private String papersNumber;

	@Column(name = "papers_type", length = 2)
	@Comment("证件类型")
	private String papersType;
	
	
	/**
	 * 人员姓名
	 */
	@Transient
	private String fullname;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmployeeCode() {
		return employeeCode;
	}

	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getContractorCode() {
		return contractorCode;
	}

	public void setContractorCode(String contractorCode) {
		this.contractorCode = contractorCode;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getCompanycodeOld() {
		return companycodeOld;
	}

	public void setCompanycodeOld(String companycodeOld) {
		this.companycodeOld = companycodeOld;
	}

	public String getContractorCodeOld() {
		return contractorCodeOld;
	}

	public void setContractorCodeOld(String contractorCodeOld) {
		this.contractorCodeOld = contractorCodeOld;
	}

	public String getDeptCodeOld() {
		return deptCodeOld;
	}

	public void setDeptCodeOld(String deptCodeOld) {
		this.deptCodeOld = deptCodeOld;
	}

	public String getTransStatus() {
		return transStatus;
	}

	public void setTransStatus(String transStatus) {
		this.transStatus = transStatus;
	}

	public String getRefuseReason() {
		return refuseReason;
	}

	public void setRefuseReason(String refuseReason) {
		this.refuseReason = refuseReason;
	}

	public Timestamp getAcceptTime() {
		return acceptTime;
	}

	public void setAcceptTime(Timestamp acceptTime) {
		this.acceptTime = acceptTime;
	}

	public String getAcceptUserid() {
		return acceptUserid;
	}

	public void setAcceptUserid(String acceptUserid) {
		this.acceptUserid = acceptUserid;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getApplyReason() {
		return applyReason;
	}

	public void setApplyReason(String applyReason) {
		this.applyReason = applyReason;
	}

	public String getPapersNumber() {
		return papersNumber;
	}

	public void setPapersNumber(String papersNumber) {
		this.papersNumber = papersNumber;
	}

	public String getPapersType() {
		return papersType;
	}

	public void setPapersType(String papersType) {
		this.papersType = papersType;
	}
	
	
}
